3.2.23 \(\int x \log (d (e+f \sqrt {x})) (a+b \log (c x^n))^2 \, dx\) [123]

Optimal. Leaf size=598 \[ \frac {21 b^2 e^3 n^2 \sqrt {x}}{4 f^3}+\frac {a b e^2 n x}{2 f^2}-\frac {7 b^2 e^2 n^2 x}{8 f^2}+\frac {37 b^2 e n^2 x^{3/2}}{108 f}-\frac {3}{16} b^2 n^2 x^2-\frac {b^2 e^4 n^2 \log \left (e+f \sqrt {x}\right )}{4 f^4}+\frac {1}{4} b^2 n^2 x^2 \log \left (d \left (e+f \sqrt {x}\right )\right )-\frac {b^2 e^4 n^2 \log \left (e+f \sqrt {x}\right ) \log \left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}-\frac {5 b e^3 n \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}+\frac {b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}-\frac {7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}+\frac {1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac {b e^4 n \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}-\frac {1}{2} b n x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )+\frac {e^3 \sqrt {x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac {e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac {e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac {1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac {e^4 \log \left (1+\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}-\frac {b^2 e^4 n^2 \text {Li}_2\left (1+\frac {f \sqrt {x}}{e}\right )}{f^4}-\frac {2 b e^4 n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {4 b^2 e^4 n^2 \text {Li}_3\left (-\frac {f \sqrt {x}}{e}\right )}{f^4} \]

[Out]

1/2*a*b*e^2*n*x/f^2-7/8*b^2*e^2*n^2*x/f^2+37/108*b^2*e*n^2*x^(3/2)/f-3/16*b^2*n^2*x^2+1/2*b^2*e^2*n*x*ln(c*x^n
)/f^2+1/4*b*e^2*n*x*(a+b*ln(c*x^n))/f^2-7/18*b*e*n*x^(3/2)*(a+b*ln(c*x^n))/f+1/4*b*n*x^2*(a+b*ln(c*x^n))-1/4*e
^2*x*(a+b*ln(c*x^n))^2/f^2+1/6*e*x^(3/2)*(a+b*ln(c*x^n))^2/f-1/8*x^2*(a+b*ln(c*x^n))^2-1/4*b^2*e^4*n^2*ln(e+f*
x^(1/2))/f^4+1/2*b*e^4*n*(a+b*ln(c*x^n))*ln(e+f*x^(1/2))/f^4-b^2*e^4*n^2*ln(-f*x^(1/2)/e)*ln(e+f*x^(1/2))/f^4+
1/4*b^2*n^2*x^2*ln(d*(e+f*x^(1/2)))-1/2*b*n*x^2*(a+b*ln(c*x^n))*ln(d*(e+f*x^(1/2)))+1/2*x^2*(a+b*ln(c*x^n))^2*
ln(d*(e+f*x^(1/2)))-1/2*e^4*(a+b*ln(c*x^n))^2*ln(1+f*x^(1/2)/e)/f^4-2*b*e^4*n*(a+b*ln(c*x^n))*polylog(2,-f*x^(
1/2)/e)/f^4-b^2*e^4*n^2*polylog(2,1+f*x^(1/2)/e)/f^4+4*b^2*e^4*n^2*polylog(3,-f*x^(1/2)/e)/f^4+21/4*b^2*e^3*n^
2*x^(1/2)/f^3-5/2*b*e^3*n*(a+b*ln(c*x^n))*x^(1/2)/f^3+1/2*e^3*(a+b*ln(c*x^n))^2*x^(1/2)/f^3

________________________________________________________________________________________

Rubi [A]
time = 0.44, antiderivative size = 598, normalized size of antiderivative = 1.00, number of steps used = 20, number of rules used = 13, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {2504, 2442, 45, 2424, 2332, 2341, 2422, 2375, 2421, 6724, 2423, 2441, 2352} \begin {gather*} -\frac {2 b e^4 n \text {PolyLog}\left (2,-\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )}{f^4}-\frac {b^2 e^4 n^2 \text {PolyLog}\left (2,\frac {f \sqrt {x}}{e}+1\right )}{f^4}+\frac {4 b^2 e^4 n^2 \text {PolyLog}\left (3,-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac {1}{2} b n x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {e^4 \log \left (\frac {f \sqrt {x}}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}+\frac {b e^4 n \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}+\frac {e^3 \sqrt {x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac {5 b e^3 n \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}-\frac {e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac {b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}+\frac {e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac {7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}-\frac {1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac {1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac {a b e^2 n x}{2 f^2}+\frac {b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}+\frac {1}{4} b^2 n^2 x^2 \log \left (d \left (e+f \sqrt {x}\right )\right )-\frac {b^2 e^4 n^2 \log \left (e+f \sqrt {x}\right )}{4 f^4}-\frac {b^2 e^4 n^2 \log \left (e+f \sqrt {x}\right ) \log \left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {21 b^2 e^3 n^2 \sqrt {x}}{4 f^3}-\frac {7 b^2 e^2 n^2 x}{8 f^2}+\frac {37 b^2 e n^2 x^{3/2}}{108 f}-\frac {3}{16} b^2 n^2 x^2 \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x*Log[d*(e + f*Sqrt[x])]*(a + b*Log[c*x^n])^2,x]

[Out]

(21*b^2*e^3*n^2*Sqrt[x])/(4*f^3) + (a*b*e^2*n*x)/(2*f^2) - (7*b^2*e^2*n^2*x)/(8*f^2) + (37*b^2*e*n^2*x^(3/2))/
(108*f) - (3*b^2*n^2*x^2)/16 - (b^2*e^4*n^2*Log[e + f*Sqrt[x]])/(4*f^4) + (b^2*n^2*x^2*Log[d*(e + f*Sqrt[x])])
/4 - (b^2*e^4*n^2*Log[e + f*Sqrt[x]]*Log[-((f*Sqrt[x])/e)])/f^4 + (b^2*e^2*n*x*Log[c*x^n])/(2*f^2) - (5*b*e^3*
n*Sqrt[x]*(a + b*Log[c*x^n]))/(2*f^3) + (b*e^2*n*x*(a + b*Log[c*x^n]))/(4*f^2) - (7*b*e*n*x^(3/2)*(a + b*Log[c
*x^n]))/(18*f) + (b*n*x^2*(a + b*Log[c*x^n]))/4 + (b*e^4*n*Log[e + f*Sqrt[x]]*(a + b*Log[c*x^n]))/(2*f^4) - (b
*n*x^2*Log[d*(e + f*Sqrt[x])]*(a + b*Log[c*x^n]))/2 + (e^3*Sqrt[x]*(a + b*Log[c*x^n])^2)/(2*f^3) - (e^2*x*(a +
 b*Log[c*x^n])^2)/(4*f^2) + (e*x^(3/2)*(a + b*Log[c*x^n])^2)/(6*f) - (x^2*(a + b*Log[c*x^n])^2)/8 + (x^2*Log[d
*(e + f*Sqrt[x])]*(a + b*Log[c*x^n])^2)/2 - (e^4*Log[1 + (f*Sqrt[x])/e]*(a + b*Log[c*x^n])^2)/(2*f^4) - (b^2*e
^4*n^2*PolyLog[2, 1 + (f*Sqrt[x])/e])/f^4 - (2*b*e^4*n*(a + b*Log[c*x^n])*PolyLog[2, -((f*Sqrt[x])/e)])/f^4 +
(4*b^2*e^4*n^2*PolyLog[3, -((f*Sqrt[x])/e)])/f^4

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2332

Int[Log[(c_.)*(x_)^(n_.)], x_Symbol] :> Simp[x*Log[c*x^n], x] - Simp[n*x, x] /; FreeQ[{c, n}, x]

Rule 2341

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[(d*x)^(m + 1)*((a + b*Log[c*x^
n])/(d*(m + 1))), x] - Simp[b*n*((d*x)^(m + 1)/(d*(m + 1)^2)), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rule 2352

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-e^(-1))*PolyLog[2, 1 - c*x], x] /; FreeQ[{c, d, e
}, x] && EqQ[e + c*d, 0]

Rule 2375

Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.))/((d_) + (e_.)*(x_)^(r_)), x_Symbol] :> Si
mp[f^m*Log[1 + e*(x^r/d)]*((a + b*Log[c*x^n])^p/(e*r)), x] - Dist[b*f^m*n*(p/(e*r)), Int[Log[1 + e*(x^r/d)]*((
a + b*Log[c*x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, m, n, r}, x] && EqQ[m, r - 1] && IGtQ[p, 0] &
& (IntegerQ[m] || GtQ[f, 0]) && NeQ[r, n]

Rule 2421

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :> Simp
[(-PolyLog[2, (-d)*f*x^m])*((a + b*Log[c*x^n])^p/m), x] + Dist[b*n*(p/m), Int[PolyLog[2, (-d)*f*x^m]*((a + b*L
og[c*x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]

Rule 2422

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))^(r_.)]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :
> Simp[Log[d*(e + f*x^m)^r]*((a + b*Log[c*x^n])^(p + 1)/(b*n*(p + 1))), x] - Dist[f*m*(r/(b*n*(p + 1))), Int[x
^(m - 1)*((a + b*Log[c*x^n])^(p + 1)/(e + f*x^m)), x], x] /; FreeQ[{a, b, c, d, e, f, r, m, n}, x] && IGtQ[p,
0] && NeQ[d*e, 1]

Rule 2423

Int[Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))^(r_.)]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((g_.)*(x_))^(q_.), x_Sym
bol] :> With[{u = IntHide[(g*x)^q*Log[d*(e + f*x^m)^r], x]}, Dist[a + b*Log[c*x^n], u, x] - Dist[b*n, Int[Dist
[1/x, u, x], x], x]] /; FreeQ[{a, b, c, d, e, f, g, r, m, n, q}, x] && (IntegerQ[(q + 1)/m] || (RationalQ[m] &
& RationalQ[q])) && NeQ[q, -1]

Rule 2424

Int[Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((g_.)*(x_))^(q_.), x_Sym
bol] :> With[{u = IntHide[(g*x)^q*Log[d*(e + f*x^m)], x]}, Dist[(a + b*Log[c*x^n])^p, u, x] - Dist[b*n*p, Int[
Dist[(a + b*Log[c*x^n])^(p - 1)/x, u, x], x], x]] /; FreeQ[{a, b, c, d, e, f, g, m, n, q}, x] && IGtQ[p, 0] &&
 RationalQ[m] && RationalQ[q] && NeQ[q, -1] && (EqQ[p, 1] || (FractionQ[m] && IntegerQ[(q + 1)/m]) || (IGtQ[q,
 0] && IntegerQ[(q + 1)/m] && EqQ[d*e, 1]))

Rule 2441

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[Log[e*((f + g
*x)/(e*f - d*g))]*((a + b*Log[c*(d + e*x)^n])/g), x] - Dist[b*e*(n/g), Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2442

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Simp[(f + g*
x)^(q + 1)*((a + b*Log[c*(d + e*x)^n])/(g*(q + 1))), x] - Dist[b*e*(n/(g*(q + 1))), Int[(f + g*x)^(q + 1)/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, q}, x] && NeQ[e*f - d*g, 0] && NeQ[q, -1]

Rule 2504

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m_.), x_Symbol] :> Dist[1/n, Subst[I
nt[x^(Simplify[(m + 1)/n] - 1)*(a + b*Log[c*(d + e*x)^p])^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, e, m, n, p,
 q}, x] && IntegerQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0]) &&  !(EqQ[q, 1] && ILtQ[n, 0] &&
 IGtQ[m, 0])

Rule 6724

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rubi steps

\begin {align*} \int x \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2 \, dx &=\frac {e^3 \sqrt {x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac {e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac {e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac {1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2-\frac {e^4 \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-(2 b n) \int \left (-\frac {e^2 \left (a+b \log \left (c x^n\right )\right )}{4 f^2}+\frac {e^3 \left (a+b \log \left (c x^n\right )\right )}{2 f^3 \sqrt {x}}+\frac {e \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{6 f}-\frac {1}{8} x \left (a+b \log \left (c x^n\right )\right )-\frac {e^4 \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4 x}+\frac {1}{2} x \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )\right ) \, dx\\ &=\frac {e^3 \sqrt {x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac {e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac {e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac {1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2-\frac {e^4 \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2+\frac {1}{4} (b n) \int x \left (a+b \log \left (c x^n\right )\right ) \, dx-(b n) \int x \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right ) \, dx+\frac {\left (b e^4 n\right ) \int \frac {\log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{x} \, dx}{f^4}-\frac {\left (b e^3 n\right ) \int \frac {a+b \log \left (c x^n\right )}{\sqrt {x}} \, dx}{f^3}+\frac {\left (b e^2 n\right ) \int \left (a+b \log \left (c x^n\right )\right ) \, dx}{2 f^2}-\frac {(b e n) \int \sqrt {x} \left (a+b \log \left (c x^n\right )\right ) \, dx}{3 f}\\ &=\frac {4 b^2 e^3 n^2 \sqrt {x}}{f^3}+\frac {a b e^2 n x}{2 f^2}+\frac {4 b^2 e n^2 x^{3/2}}{27 f}-\frac {1}{16} b^2 n^2 x^2-\frac {5 b e^3 n \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}+\frac {b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}-\frac {7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}+\frac {1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac {b e^4 n \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}-\frac {1}{2} b n x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )+\frac {e^3 \sqrt {x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac {e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac {e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac {1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac {e^4 \int \frac {\left (a+b \log \left (c x^n\right )\right )^2}{\left (e+f \sqrt {x}\right ) \sqrt {x}} \, dx}{4 f^3}+\frac {\left (b^2 e^2 n\right ) \int \log \left (c x^n\right ) \, dx}{2 f^2}+\left (b^2 n^2\right ) \int \left (-\frac {e^2}{4 f^2}+\frac {e^3}{2 f^3 \sqrt {x}}+\frac {e \sqrt {x}}{6 f}-\frac {x}{8}-\frac {e^4 \log \left (e+f \sqrt {x}\right )}{2 f^4 x}+\frac {1}{2} x \log \left (d \left (e+f \sqrt {x}\right )\right )\right ) \, dx\\ &=\frac {5 b^2 e^3 n^2 \sqrt {x}}{f^3}+\frac {a b e^2 n x}{2 f^2}-\frac {3 b^2 e^2 n^2 x}{4 f^2}+\frac {7 b^2 e n^2 x^{3/2}}{27 f}-\frac {1}{8} b^2 n^2 x^2+\frac {b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}-\frac {5 b e^3 n \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}+\frac {b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}-\frac {7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}+\frac {1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac {b e^4 n \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}-\frac {1}{2} b n x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )+\frac {e^3 \sqrt {x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac {e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac {e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac {1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac {e^4 \log \left (1+\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}+\frac {\left (b e^4 n\right ) \int \frac {\log \left (1+\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )}{x} \, dx}{f^4}+\frac {1}{2} \left (b^2 n^2\right ) \int x \log \left (d \left (e+f \sqrt {x}\right )\right ) \, dx-\frac {\left (b^2 e^4 n^2\right ) \int \frac {\log \left (e+f \sqrt {x}\right )}{x} \, dx}{2 f^4}\\ &=\frac {5 b^2 e^3 n^2 \sqrt {x}}{f^3}+\frac {a b e^2 n x}{2 f^2}-\frac {3 b^2 e^2 n^2 x}{4 f^2}+\frac {7 b^2 e n^2 x^{3/2}}{27 f}-\frac {1}{8} b^2 n^2 x^2+\frac {b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}-\frac {5 b e^3 n \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}+\frac {b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}-\frac {7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}+\frac {1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac {b e^4 n \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}-\frac {1}{2} b n x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )+\frac {e^3 \sqrt {x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac {e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac {e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac {1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac {e^4 \log \left (1+\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}-\frac {2 b e^4 n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\left (b^2 n^2\right ) \text {Subst}\left (\int x^3 \log (d (e+f x)) \, dx,x,\sqrt {x}\right )-\frac {\left (b^2 e^4 n^2\right ) \text {Subst}\left (\int \frac {\log (e+f x)}{x} \, dx,x,\sqrt {x}\right )}{f^4}+\frac {\left (2 b^2 e^4 n^2\right ) \int \frac {\text {Li}_2\left (-\frac {f \sqrt {x}}{e}\right )}{x} \, dx}{f^4}\\ &=\frac {5 b^2 e^3 n^2 \sqrt {x}}{f^3}+\frac {a b e^2 n x}{2 f^2}-\frac {3 b^2 e^2 n^2 x}{4 f^2}+\frac {7 b^2 e n^2 x^{3/2}}{27 f}-\frac {1}{8} b^2 n^2 x^2+\frac {1}{4} b^2 n^2 x^2 \log \left (d \left (e+f \sqrt {x}\right )\right )-\frac {b^2 e^4 n^2 \log \left (e+f \sqrt {x}\right ) \log \left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}-\frac {5 b e^3 n \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}+\frac {b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}-\frac {7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}+\frac {1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac {b e^4 n \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}-\frac {1}{2} b n x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )+\frac {e^3 \sqrt {x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac {e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac {e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac {1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac {e^4 \log \left (1+\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}-\frac {2 b e^4 n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {4 b^2 e^4 n^2 \text {Li}_3\left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {\left (b^2 e^4 n^2\right ) \text {Subst}\left (\int \frac {\log \left (-\frac {f x}{e}\right )}{e+f x} \, dx,x,\sqrt {x}\right )}{f^3}-\frac {1}{4} \left (b^2 f n^2\right ) \text {Subst}\left (\int \frac {x^4}{e+f x} \, dx,x,\sqrt {x}\right )\\ &=\frac {5 b^2 e^3 n^2 \sqrt {x}}{f^3}+\frac {a b e^2 n x}{2 f^2}-\frac {3 b^2 e^2 n^2 x}{4 f^2}+\frac {7 b^2 e n^2 x^{3/2}}{27 f}-\frac {1}{8} b^2 n^2 x^2+\frac {1}{4} b^2 n^2 x^2 \log \left (d \left (e+f \sqrt {x}\right )\right )-\frac {b^2 e^4 n^2 \log \left (e+f \sqrt {x}\right ) \log \left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}-\frac {5 b e^3 n \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}+\frac {b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}-\frac {7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}+\frac {1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac {b e^4 n \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}-\frac {1}{2} b n x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )+\frac {e^3 \sqrt {x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac {e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac {e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac {1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac {e^4 \log \left (1+\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}-\frac {b^2 e^4 n^2 \text {Li}_2\left (1+\frac {f \sqrt {x}}{e}\right )}{f^4}-\frac {2 b e^4 n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {4 b^2 e^4 n^2 \text {Li}_3\left (-\frac {f \sqrt {x}}{e}\right )}{f^4}-\frac {1}{4} \left (b^2 f n^2\right ) \text {Subst}\left (\int \left (-\frac {e^3}{f^4}+\frac {e^2 x}{f^3}-\frac {e x^2}{f^2}+\frac {x^3}{f}+\frac {e^4}{f^4 (e+f x)}\right ) \, dx,x,\sqrt {x}\right )\\ &=\frac {21 b^2 e^3 n^2 \sqrt {x}}{4 f^3}+\frac {a b e^2 n x}{2 f^2}-\frac {7 b^2 e^2 n^2 x}{8 f^2}+\frac {37 b^2 e n^2 x^{3/2}}{108 f}-\frac {3}{16} b^2 n^2 x^2-\frac {b^2 e^4 n^2 \log \left (e+f \sqrt {x}\right )}{4 f^4}+\frac {1}{4} b^2 n^2 x^2 \log \left (d \left (e+f \sqrt {x}\right )\right )-\frac {b^2 e^4 n^2 \log \left (e+f \sqrt {x}\right ) \log \left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {b^2 e^2 n x \log \left (c x^n\right )}{2 f^2}-\frac {5 b e^3 n \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}+\frac {b e^2 n x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}-\frac {7 b e n x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{18 f}+\frac {1}{4} b n x^2 \left (a+b \log \left (c x^n\right )\right )+\frac {b e^4 n \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}-\frac {1}{2} b n x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )+\frac {e^3 \sqrt {x} \left (a+b \log \left (c x^n\right )\right )^2}{2 f^3}-\frac {e^2 x \left (a+b \log \left (c x^n\right )\right )^2}{4 f^2}+\frac {e x^{3/2} \left (a+b \log \left (c x^n\right )\right )^2}{6 f}-\frac {1}{8} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2-\frac {e^4 \log \left (1+\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 f^4}-\frac {b^2 e^4 n^2 \text {Li}_2\left (1+\frac {f \sqrt {x}}{e}\right )}{f^4}-\frac {2 b e^4 n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {4 b^2 e^4 n^2 \text {Li}_3\left (-\frac {f \sqrt {x}}{e}\right )}{f^4}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.29, size = 960, normalized size = 1.61 \begin {gather*} \frac {216 a^2 e^3 f \sqrt {x}-1080 a b e^3 f n \sqrt {x}+2268 b^2 e^3 f n^2 \sqrt {x}-108 a^2 e^2 f^2 x+324 a b e^2 f^2 n x-378 b^2 e^2 f^2 n^2 x+72 a^2 e f^3 x^{3/2}-168 a b e f^3 n x^{3/2}+148 b^2 e f^3 n^2 x^{3/2}-54 a^2 f^4 x^2+108 a b f^4 n x^2-81 b^2 f^4 n^2 x^2-216 a^2 e^4 \log \left (e+f \sqrt {x}\right )+216 a b e^4 n \log \left (e+f \sqrt {x}\right )-108 b^2 e^4 n^2 \log \left (e+f \sqrt {x}\right )+216 a^2 f^4 x^2 \log \left (d \left (e+f \sqrt {x}\right )\right )-216 a b f^4 n x^2 \log \left (d \left (e+f \sqrt {x}\right )\right )+108 b^2 f^4 n^2 x^2 \log \left (d \left (e+f \sqrt {x}\right )\right )+432 a b e^4 n \log \left (e+f \sqrt {x}\right ) \log (x)-216 b^2 e^4 n^2 \log \left (e+f \sqrt {x}\right ) \log (x)-432 a b e^4 n \log \left (1+\frac {f \sqrt {x}}{e}\right ) \log (x)+216 b^2 e^4 n^2 \log \left (1+\frac {f \sqrt {x}}{e}\right ) \log (x)-216 b^2 e^4 n^2 \log \left (e+f \sqrt {x}\right ) \log ^2(x)+216 b^2 e^4 n^2 \log \left (1+\frac {f \sqrt {x}}{e}\right ) \log ^2(x)+432 a b e^3 f \sqrt {x} \log \left (c x^n\right )-1080 b^2 e^3 f n \sqrt {x} \log \left (c x^n\right )-216 a b e^2 f^2 x \log \left (c x^n\right )+324 b^2 e^2 f^2 n x \log \left (c x^n\right )+144 a b e f^3 x^{3/2} \log \left (c x^n\right )-168 b^2 e f^3 n x^{3/2} \log \left (c x^n\right )-108 a b f^4 x^2 \log \left (c x^n\right )+108 b^2 f^4 n x^2 \log \left (c x^n\right )-432 a b e^4 \log \left (e+f \sqrt {x}\right ) \log \left (c x^n\right )+216 b^2 e^4 n \log \left (e+f \sqrt {x}\right ) \log \left (c x^n\right )+432 a b f^4 x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \log \left (c x^n\right )-216 b^2 f^4 n x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \log \left (c x^n\right )+432 b^2 e^4 n \log \left (e+f \sqrt {x}\right ) \log (x) \log \left (c x^n\right )-432 b^2 e^4 n \log \left (1+\frac {f \sqrt {x}}{e}\right ) \log (x) \log \left (c x^n\right )+216 b^2 e^3 f \sqrt {x} \log ^2\left (c x^n\right )-108 b^2 e^2 f^2 x \log ^2\left (c x^n\right )+72 b^2 e f^3 x^{3/2} \log ^2\left (c x^n\right )-54 b^2 f^4 x^2 \log ^2\left (c x^n\right )-216 b^2 e^4 \log \left (e+f \sqrt {x}\right ) \log ^2\left (c x^n\right )+216 b^2 f^4 x^2 \log \left (d \left (e+f \sqrt {x}\right )\right ) \log ^2\left (c x^n\right )+432 b e^4 n \left (-2 a+b n-2 b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {f \sqrt {x}}{e}\right )+1728 b^2 e^4 n^2 \text {Li}_3\left (-\frac {f \sqrt {x}}{e}\right )}{432 f^4} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x*Log[d*(e + f*Sqrt[x])]*(a + b*Log[c*x^n])^2,x]

[Out]

(216*a^2*e^3*f*Sqrt[x] - 1080*a*b*e^3*f*n*Sqrt[x] + 2268*b^2*e^3*f*n^2*Sqrt[x] - 108*a^2*e^2*f^2*x + 324*a*b*e
^2*f^2*n*x - 378*b^2*e^2*f^2*n^2*x + 72*a^2*e*f^3*x^(3/2) - 168*a*b*e*f^3*n*x^(3/2) + 148*b^2*e*f^3*n^2*x^(3/2
) - 54*a^2*f^4*x^2 + 108*a*b*f^4*n*x^2 - 81*b^2*f^4*n^2*x^2 - 216*a^2*e^4*Log[e + f*Sqrt[x]] + 216*a*b*e^4*n*L
og[e + f*Sqrt[x]] - 108*b^2*e^4*n^2*Log[e + f*Sqrt[x]] + 216*a^2*f^4*x^2*Log[d*(e + f*Sqrt[x])] - 216*a*b*f^4*
n*x^2*Log[d*(e + f*Sqrt[x])] + 108*b^2*f^4*n^2*x^2*Log[d*(e + f*Sqrt[x])] + 432*a*b*e^4*n*Log[e + f*Sqrt[x]]*L
og[x] - 216*b^2*e^4*n^2*Log[e + f*Sqrt[x]]*Log[x] - 432*a*b*e^4*n*Log[1 + (f*Sqrt[x])/e]*Log[x] + 216*b^2*e^4*
n^2*Log[1 + (f*Sqrt[x])/e]*Log[x] - 216*b^2*e^4*n^2*Log[e + f*Sqrt[x]]*Log[x]^2 + 216*b^2*e^4*n^2*Log[1 + (f*S
qrt[x])/e]*Log[x]^2 + 432*a*b*e^3*f*Sqrt[x]*Log[c*x^n] - 1080*b^2*e^3*f*n*Sqrt[x]*Log[c*x^n] - 216*a*b*e^2*f^2
*x*Log[c*x^n] + 324*b^2*e^2*f^2*n*x*Log[c*x^n] + 144*a*b*e*f^3*x^(3/2)*Log[c*x^n] - 168*b^2*e*f^3*n*x^(3/2)*Lo
g[c*x^n] - 108*a*b*f^4*x^2*Log[c*x^n] + 108*b^2*f^4*n*x^2*Log[c*x^n] - 432*a*b*e^4*Log[e + f*Sqrt[x]]*Log[c*x^
n] + 216*b^2*e^4*n*Log[e + f*Sqrt[x]]*Log[c*x^n] + 432*a*b*f^4*x^2*Log[d*(e + f*Sqrt[x])]*Log[c*x^n] - 216*b^2
*f^4*n*x^2*Log[d*(e + f*Sqrt[x])]*Log[c*x^n] + 432*b^2*e^4*n*Log[e + f*Sqrt[x]]*Log[x]*Log[c*x^n] - 432*b^2*e^
4*n*Log[1 + (f*Sqrt[x])/e]*Log[x]*Log[c*x^n] + 216*b^2*e^3*f*Sqrt[x]*Log[c*x^n]^2 - 108*b^2*e^2*f^2*x*Log[c*x^
n]^2 + 72*b^2*e*f^3*x^(3/2)*Log[c*x^n]^2 - 54*b^2*f^4*x^2*Log[c*x^n]^2 - 216*b^2*e^4*Log[e + f*Sqrt[x]]*Log[c*
x^n]^2 + 216*b^2*f^4*x^2*Log[d*(e + f*Sqrt[x])]*Log[c*x^n]^2 + 432*b*e^4*n*(-2*a + b*n - 2*b*Log[c*x^n])*PolyL
og[2, -((f*Sqrt[x])/e)] + 1728*b^2*e^4*n^2*PolyLog[3, -((f*Sqrt[x])/e)])/(432*f^4)

________________________________________________________________________________________

Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int x \left (a +b \ln \left (c \,x^{n}\right )\right )^{2} \ln \left (d \left (e +f \sqrt {x}\right )\right )\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(a+b*ln(c*x^n))^2*ln(d*(e+f*x^(1/2))),x)

[Out]

int(x*(a+b*ln(c*x^n))^2*ln(d*(e+f*x^(1/2))),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2))),x, algorithm="maxima")

[Out]

integrate((b*log(c*x^n) + a)^2*x*log((f*sqrt(x) + e)*d), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2))),x, algorithm="fricas")

[Out]

integral((b^2*x*log(c*x^n)^2 + 2*a*b*x*log(c*x^n) + a^2*x)*log(d*f*sqrt(x) + d*e), x)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*ln(c*x**n))**2*ln(d*(e+f*x**(1/2))),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2))),x, algorithm="giac")

[Out]

integrate((b*log(c*x^n) + a)^2*x*log((f*sqrt(x) + e)*d), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int x\,\ln \left (d\,\left (e+f\,\sqrt {x}\right )\right )\,{\left (a+b\,\ln \left (c\,x^n\right )\right )}^2 \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*log(d*(e + f*x^(1/2)))*(a + b*log(c*x^n))^2,x)

[Out]

int(x*log(d*(e + f*x^(1/2)))*(a + b*log(c*x^n))^2, x)

________________________________________________________________________________________